<template>
<div>
  <component :is="currentView"  keep-alive :keyMap="keyMap" :parentDesignerData='desigerData' :inputParams='params'></component>
</div>
</template>
<script>
import designer from './designer.vue'
export default {
  name: 'shower',
  data() {
    return {
      keyMap: {editable:'false'},
      currentView: designer,
      desigerData:{},
      params:{}
    }
  },
  mounted() {
    var params={};
    var desigerData={};
    if(this.$route.meta.key){
      desigerData={
        grsNo:this.$route.meta.key
      }
    }
    if(this.$route.query.grsNo){
      desigerData={
        grsNo:this.$route.query.grsNo
      };
      if(this.$route.query.params&&this.$route.query.params!=''){
        params=eval("("+this.$route.query.params+")");
      }
    }
    this.desigerData = desigerData;
    this.params=params;
  },
  methods: {
  }
}
</script>
